<%
if params[:host_id].present?
  fact_breadcrumbs
else
  title(_("Fact Values"))
end
%>
<% title_actions csv_link, documentation_button('3.5.5FactsandtheENC') %>

<table class="<%= table_css_classes('table-fixed factsTable') %>">
  <thead>
    <tr>
      <% unless params[:host_id] %>
        <th class="col-md-2"><%= sort :host, :as => _("Host") %></th>
      <% end %>
      <th><%= sort :name, :as => _("Name")  %></th>
      <th><%= sort :value, :as => s_("FactValue|Value") %></th>
      <th class="fact-origin"><%= sort :origin, :as => s_("FactValue|Origin") %></th>
      <th class="col-md-2"><%= sort :reported_at, :as => _('Reported at') %></th>
    </tr>
  </thead>
  <tbody>
    <%= render :partial => 'fact', :collection => @fact_values,
               :locals  => { :parent => @parent } %>
  </tbody>
</table>

<%= will_paginate_with_info @fact_values %>
